//从redux包中导入createStore函数
import {legacy_createStore as createStore} from 'redux'
//通过legacy_createStore函数创建store对象
import counterReducer from '@/store/reducer/counterReducer'

import {composeWithDevTools} from 'redux-devtools-extension'
const store=createStore(counterReducer,composeWithDevTools())
//将这个store默认导出
export default store